uboot-mediatek: GatoNetworks GDSP support fixes and updates
authorEnrico Mioso <[email protected]>
Fri, 11 Jul 2025 11:22:57 +0000 (13:22 +0200)
committerDaniel Golle <[email protected]>
Fri, 18 Jul 2025 11:36:39 +0000 (12:36 +0100)
commit6cd92ed8d877957d0d90165309cdf53c2388b20e
treeda243c816ff6b0cbc2f396eb2cc097b07e24e145
parent072ae5a76ba8aa595fdf485cd9a149271b06b64f
uboot-mediatek: GatoNetworks GDSP support fixes and updates

This commit updates the OpenWrt-based U-Boot for this device, allowing
to boot a FIT firmware image stored in an SD card.
The environment has been updated accordingly to allow for managing images
on the two different supported firmware boot media configurations
(NOR or SDMMC).
Erasing the U-Boot environment when upgrading is recommended, so that
the correct DTS overlay is applied.

New behaviour
-------------

The default environment "bootconf" variable is set to
config-1#mt7981b-gatonetworks-gdsp-gps
rendering the GPS module accessible.
You may set it to something like
config-1#mt7981b-gatonetworks-gdsp-sd
to be able to use the MMC controller.
To boot from a firmware image stored in an SD card, you may set the
bootmedia environment variable:
# fw_setenv bootmedia sd
and reboot.
Should the bootmedia variable be absent or it's content not recognized
as valid (e.g., does not contain "nor" or "sd"), NOR boot will be
attempted.

Signed-off-by: Enrico Mioso <[email protected]>
package/boot/uboot-mediatek/patches/458-add-GatoNetworks-GDSP.patch